package com.ssy.lingxi.order.model.vo.payment.request;

import com.ssy.lingxi.order.handler.annotation.PaymentParameterAnnotation;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 平台支付参数配置 - 支付参数
 * @author 万宁
 * @version 2.0.0
 * @date 2021-08-12
 */
public class PaymentParameterVO implements Serializable {
    private static final long serialVersionUID = -2137388877393640022L;

    /**
     * 支付参数枚举值
     */
    @NotNull(message = "支付参数枚举值不能为空")
    @PaymentParameterAnnotation
    private Integer code;

    /**
     * 支付参数
     */
    @NotBlank(message = "支付参数不能为空")
    @Size(max = 3000, message = "支付参数最长3000个字符")
    private String value;

    /**
     * 参数描述
     */
    @Size(max = 200, message = "参数描述最长200个字符")
    private String remark;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
